<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: wheels::dm::abstractFactory&lt; productTypes &gt; 模板结构体 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../df/d8d/namespacewheels.html">wheels</a></li><li class="navelem"><a class="el" href="../../d8/d2d/namespacewheels_1_1dm.html">dm</a></li><li class="navelem"><a class="el" href="../../df/db9/structwheels_1_1dm_1_1abstract_factory.html">abstractFactory</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="../../de/d71/structwheels_1_1dm_1_1abstract_factory-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">wheels::dm::abstractFactory&lt; productTypes &gt; 模板结构体 参考</div></div>
</div><!--header-->
<div class="contents">

<p>使用模板实现的抽象工厂模式  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="../../d0/ddb/abs_factory_8hpp_source.html">absFactory.hpp</a>&gt;</code></p>
<div class="dynheader">
类 wheels::dm::abstractFactory&lt; productTypes &gt; 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d9/dae/structwheels_1_1dm_1_1abstract_factory__inherit__graph.png" border="0" usemap="#awheels_1_1dm_1_1abstract_factory_3_01product_types_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="awheels_1_1dm_1_1abstract_factory_3_01product_types_01_4_inherit__map" id="awheels_1_1dm_1_1abstract_factory_3_01product_types_01_4_inherit__map">
<area shape="rect" title="使用模板实现的抽象工厂模式" alt="" coords="5,5,205,224"/>
<area shape="rect" href="../../df/db9/structwheels_1_1dm_1_1abstract_factory.html" title=" " alt="" coords="5,304,205,523"/>
<area shape="poly" title=" " alt="" coords="108,239,108,304,103,304,103,239"/>
<area shape="rect" href="../../d7/d4f/classwheels_1_1file_client_1_1file_client.html" title=" " alt="" coords="7,572,203,743"/>
<area shape="poly" title=" " alt="" coords="108,538,108,572,103,572,103,538"/>
</map>
</div>
<div class="dynheader">
wheels::dm::abstractFactory&lt; productTypes &gt; 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../dd/dec/structwheels_1_1dm_1_1abstract_factory__coll__graph.png" border="0" usemap="#awheels_1_1dm_1_1abstract_factory_3_01product_types_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="awheels_1_1dm_1_1abstract_factory_3_01product_types_01_4_coll__map" id="awheels_1_1dm_1_1abstract_factory_3_01product_types_01_4_coll__map">
<area shape="rect" title="使用模板实现的抽象工厂模式" alt="" coords="5,5,205,224"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:aac978d5805dc7025227c482a0a8a222a" id="r_aac978d5805dc7025227c482a0a8a222a"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aac978d5805dc7025227c482a0a8a222a">prdtTypes</a> = std::tuple&lt; productTypes... &gt;</td></tr>
<tr class="separator:aac978d5805dc7025227c482a0a8a222a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a8f3fb3b927f5c7e254c706a2058582bf" id="r_a8f3fb3b927f5c7e254c706a2058582bf"><td class="memTemplParams" colspan="2">template&lt;size_t N, typename... Args&gt; </td></tr>
<tr class="memitem:a8f3fb3b927f5c7e254c706a2058582bf"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="#a8f3fb3b927f5c7e254c706a2058582bf">create</a> (Args &amp;&amp;... args) -&gt; typename std::tuple_element&lt; N, <a class="el" href="#aac978d5805dc7025227c482a0a8a222a">prdtTypes</a> &gt;::type *</td></tr>
<tr class="memdesc:a8f3fb3b927f5c7e254c706a2058582bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建以裸指针管理的产品  <br /></td></tr>
<tr class="separator:a8f3fb3b927f5c7e254c706a2058582bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a653d53560f7268463499e1af7b115a" id="r_a4a653d53560f7268463499e1af7b115a"><td class="memTemplParams" colspan="2">template&lt;size_t N, typename... Args&gt; </td></tr>
<tr class="memitem:a4a653d53560f7268463499e1af7b115a"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="#a4a653d53560f7268463499e1af7b115a">makeShared</a> (Args &amp;&amp;... args) -&gt; std::shared_ptr&lt; typename std::tuple_element&lt; N, <a class="el" href="#aac978d5805dc7025227c482a0a8a222a">prdtTypes</a> &gt;::type &gt;</td></tr>
<tr class="memdesc:a4a653d53560f7268463499e1af7b115a"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建以智能指针管理的产品  <br /></td></tr>
<tr class="separator:a4a653d53560f7268463499e1af7b115a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename... productTypes&gt;<br />
struct wheels::dm::abstractFactory&lt; productTypes &gt;</div><p>使用模板实现的抽象工厂模式 </p>

<p class="definition">在文件 <a class="el" href="../../d0/ddb/abs_factory_8hpp_source.html">absFactory.hpp</a> 第 <a class="el" href="../../d0/ddb/abs_factory_8hpp_source.html#l00144">144</a> 行定义.</p>
</div><h2 class="groupheader">成员类型定义说明</h2>
<a id="aac978d5805dc7025227c482a0a8a222a" name="aac978d5805dc7025227c482a0a8a222a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac978d5805dc7025227c482a0a8a222a">&#9670;&#160;</a></span>prdtTypes</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename... productTypes&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="../../df/db9/structwheels_1_1dm_1_1abstract_factory.html">wheels::dm::abstractFactory</a>&lt; productTypes &gt;::prdtTypes = std::tuple&lt; productTypes... &gt;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/ddb/abs_factory_8hpp_source.html">absFactory.hpp</a> 第 <a class="el" href="../../d0/ddb/abs_factory_8hpp_source.html#l00146">146</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a8f3fb3b927f5c7e254c706a2058582bf" name="a8f3fb3b927f5c7e254c706a2058582bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f3fb3b927f5c7e254c706a2058582bf">&#9670;&#160;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename... productTypes&gt; </div>
<div class="memtemplate">
template&lt;size_t N, typename... Args&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto <a class="el" href="../../df/db9/structwheels_1_1dm_1_1abstract_factory.html">wheels::dm::abstractFactory</a>&lt; productTypes &gt;::create </td>
          <td>(</td>
          <td class="paramtype">Args &amp;&amp;...</td>          <td class="paramname"><span class="paramname"><em>args</em></span></td><td>)</td>
          <td> -&gt; typename std::tuple_element&lt; N , <a class="el" href="#aac978d5805dc7025227c482a0a8a222a">prdtTypes</a> &gt;::type *</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>创建以裸指针管理的产品 </p>
<dl class="tparams"><dt>模板参数</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">N</td><td>产品索引编号 </td></tr>
    <tr><td class="paramname">Args</td><td>参数类型表，用来初始化产品参数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">args...</td><td>产品的参数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功操作返回对象的智能指针，否则返回空的指针 </dd></dl>

<p class="definition">在文件 <a class="el" href="../../d0/ddb/abs_factory_8hpp_source.html">absFactory.hpp</a> 第 <a class="el" href="../../d0/ddb/abs_factory_8hpp_source.html#l00156">156</a> 行定义.</p>

</div>
</div>
<a id="a4a653d53560f7268463499e1af7b115a" name="a4a653d53560f7268463499e1af7b115a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a653d53560f7268463499e1af7b115a">&#9670;&#160;</a></span>makeShared()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename... productTypes&gt; </div>
<div class="memtemplate">
template&lt;size_t N, typename... Args&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto <a class="el" href="../../df/db9/structwheels_1_1dm_1_1abstract_factory.html">wheels::dm::abstractFactory</a>&lt; productTypes &gt;::makeShared </td>
          <td>(</td>
          <td class="paramtype">Args &amp;&amp;...</td>          <td class="paramname"><span class="paramname"><em>args</em></span></td><td>)</td>
          <td> -&gt; std::shared_ptr&lt; typename std::tuple_element&lt; N , <a class="el" href="#aac978d5805dc7025227c482a0a8a222a">prdtTypes</a> &gt;::type &gt;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>创建以智能指针管理的产品 </p>
<dl class="tparams"><dt>模板参数</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">N</td><td>产品索引编号 </td></tr>
    <tr><td class="paramname">Args</td><td>参数类型表，用来初始化产品参数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">args...</td><td>产品的参数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功操作返回对象的智能指针，否则返回空的智能指针 </dd></dl>

<p class="definition">在文件 <a class="el" href="../../d0/ddb/abs_factory_8hpp_source.html">absFactory.hpp</a> 第 <a class="el" href="../../d0/ddb/abs_factory_8hpp_source.html#l00168">168</a> 行定义.</p>

</div>
</div>
<hr/>该结构体的文档由以下文件生成:<ul>
<li>include/designM/<a class="el" href="../../d0/ddb/abs_factory_8hpp_source.html">absFactory.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
